package FirstProject;

import java.io.Serializable;

public  class MobileCard implements Serializable {
    String cardNumber;
    String userName;
    String passWord;
    ServicePackage serPackage;
    double consumeAmount;//消费金额
    double money;//卡里还剩的钱
    int realSMSCount;//真实发送短信条数
    int realFlow;//真实流量
    int realTalkTime;//真实通话时长
    //public abstract void showMeg();

    public MobileCard() {
    }
    public MobileCard(String cardNumber, String userName, String passWord,
                      ServicePackage serPackage, double money) {
        this.cardNumber = cardNumber;
        this.userName = userName;
        this.passWord = passWord;
        this.serPackage = serPackage;
        this.money = money;
    }
    public MobileCard(String cardNumber, String userName, String passWord, ServicePackage serPackage, double consumeAmount,
                      double money, int realSMSCount, int realFlow, int realTalkTime) {
        this.cardNumber = cardNumber;
        this.userName = userName;
        this.passWord = passWord;
        this.serPackage = serPackage;
        this.consumeAmount = consumeAmount;
        this.money = money;
        this.realSMSCount = realSMSCount;
        this.realFlow = realFlow;
        this.realTalkTime=realTalkTime;
    }
    //public abstract void showPackage();
    public  void showMeg(){
        System.out.println("卡号：" + cardNumber);
        System.out.println("用户名：" + userName);
        System.out.println("当前余额：" + money + "元");
        serPackage.showInfo();
        System.out.println("当月通话时长：" + realTalkTime + "分钟");
        System.out.println("当月短信条数：" + realSMSCount + "条");
        System.out.println("当月上网流量：" + realFlow + "MB");
        System.out.println("当月消费金额：" + consumeAmount + "元");

    }
    public String getCardNumber() {
        return cardNumber;
    }
    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public ServicePackage getSerPackage() {
        return serPackage;
    }

    public void setSerPackage(ServicePackage serPackage) {
        this.serPackage = serPackage;
    }

    public double getConsumeAmount() {
        return consumeAmount;
    }

    public void setConsumeAmount(double consumeAmount) {
        this.consumeAmount = consumeAmount;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public int getRealSMSCount() {
        return realSMSCount;
    }



    public void setRealSMSCount(int realSMSCount) {
        this.realSMSCount = realSMSCount;
    }

    public int getRealFlow() {
        return realFlow;
    }

    public void setRealFlow(int realFlow) {
        this.realFlow = realFlow;
    }
    public int getRealTalkTime() {
        return realTalkTime;
    }

    public void setRealTalkTime(int realTalkTime) {
        this.realTalkTime = realTalkTime;
    }

}
